package com.yuyou.train.service.api.lesson.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.yuyou.train.service.api.lesson.entity.ResourceExam;
import com.yuyou.train.service.api.lesson.entity.ResourceExamItem;





@FeignClient(value = "train-lesson-service")
@RequestMapping(value = "/examAPI")
public interface ExamAPI {
	
	@RequestMapping(value = "/selectExamById")
	ResourceExam selectExamById(@RequestParam("id") String id);
	
	@RequestMapping(value = "/selectExamItem")
	ResourceExamItem selectExamItem(
			@RequestParam("resourceExamId") String resourceExamId,
			@RequestParam("resourceQuestionId") String resourceQuestionId,
			@RequestParam("sort") Integer sort
			);
	
	@RequestMapping(value = "/findItemByExamId")
	List<ResourceExamItem> findItemByExamId(
			@RequestParam("resourceExamId") String resourceExamId
			);
	
	@RequestMapping(value = "/selectExamItemById")
	ResourceExamItem selectExamItemById(@RequestParam("id") String id);
	
}
